package net.xo68.destiny.manager.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;



/** 
 * Trigger 实体
 * @author wuxie(16349023@qq.com)
 * @date 2020年12月21日 21:43:52
 *
 */
@ApiModel("Trigger 实体")
public class Trigger implements java.io.Serializable{
	
	private static final long serialVersionUID = 1L;

	/**
	 * 任务编号
	 */
	@ApiModelProperty("任务编号")
	private Long jobId;
	/**
	 * 前一次触发时间
	 */
	@ApiModelProperty("前一次触发时间")
	private Date prevFireTime;
	/**
	 * 下一次触发时间
	 */
	@ApiModelProperty("下一次触发时间")
	private Date nextFireTime;
	/**
	 * 状态：0-停止，1-运行中，2-结束
	 */
	@ApiModelProperty("状态：0-停止，1-运行中，2-结束")
	private Byte jobState;
	/**
	 * 触发器类型：simple-简单触发器，cron-cron触发器
	 */
	@ApiModelProperty("触发器类型：simple-简单触发器，cron-cron触发器")
	private String triggerType;
	/**
	 * 开始时间
	 */
	@ApiModelProperty("开始时间")
	private Date startTime;
	/**
	 * 结束时间
	 */
	@ApiModelProperty("结束时间")
	private Date endTime;
	
	@Override
	public String toString(){
		return "jobId:"+this.jobId+","+"prevFireTime:"+this.prevFireTime+","+"nextFireTime:"+this.nextFireTime+","+"jobState:"+this.jobState+","+"triggerType:"+this.triggerType+","+"startTime:"+this.startTime+","+"endTime:"+this.endTime;
	}
	

	public Long getJobId() {
		return this.jobId;
	}
	public void setJobId(Long value) {
		this.jobId = value;
	}	

	public Date getPrevFireTime() {
		return this.prevFireTime;
	}
	public void setPrevFireTime(Date value) {
		this.prevFireTime = value;
	}	

	public Date getNextFireTime() {
		return this.nextFireTime;
	}
	public void setNextFireTime(Date value) {
		this.nextFireTime = value;
	}	

	public Byte getJobState() {
		return this.jobState;
	}
	public void setJobState(Byte value) {
		this.jobState = value;
	}	

	public String getTriggerType() {
		return this.triggerType;
	}
	public void setTriggerType(String value) {
		this.triggerType = value;
	}	

	public Date getStartTime() {
		return this.startTime;
	}
	public void setStartTime(Date value) {
		this.startTime = value;
	}	

	public Date getEndTime() {
		return this.endTime;
	}
	public void setEndTime(Date value) {
		this.endTime = value;
	}	
}